home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / amos / AMOSList0993.lzh / AMOSLIST / 000198_amos-request@svcs1.digex.net_Thu Sep 16 22:13:45 1993.msg < prev    next >
Internet Message Format  |  1993-10-03  |  3KB

  1. Received: from nextsun.INS.CWRU.Edu by access.digex.net with SMTP id AA09604
  2.   (5.65c/IDA-1.4.4 for <mcox@access.digex.com>); Thu, 16 Sep 1993 22:13:43 -0400
  3. Received: from svcs1.digex.net by nextsun.INS.CWRU.Edu with SMTP (5.65b+ida+/CWRU-1.5.2-freenet-gw)
  4.     id AA18486; Thu, 16 Sep 93 22:13:18 -0400 (from amos-request@svcs1.digex.net for mcox@access.digex.com)
  5. Received: by svcs1.digex.net id AA11461
  6.   (5.65c/IDA-1.4.4 for amos-list-out); Thu, 16 Sep 1993 21:28:46 -0400
  7. Received: from access.digex.net by svcs1.digex.net with SMTP id AA11453
  8.   (5.65c/IDA-1.4.4 for <amos-list@svcs1.digex.net>); Thu, 16 Sep 1993 21:28:42 -0400
  9. Received: from bode.ee.ualberta.ca by access.digex.net with SMTP id AA04132
  10.   (5.65c/IDA-1.4.4 for <amos-list@access.digex.net>); Thu, 16 Sep 1993 21:28:38 -0400
  11. Received: by bode.ee.ualberta.ca
  12.     (1.37.109.4/15.6) id AA03682; Thu, 16 Sep 93 19:28:32 -0600
  13. Date: Thu, 16 Sep 1993 19:17:05 +0700 (MST)
  14. From: Mike Sikorsky <sikorsky@ee.ualberta.ca>
  15. Sender: Mike Sikorsky <sikorsky@ee.ualberta.ca>
  16. Reply-To: Mike Sikorsky <sikorsky@ee.ualberta.ca>
  17. Subject: Re: image and brush hassle
  18. Cc: amos-list@access.digex.net
  19. In-Reply-To: <199309171821.AA07192@zeus>
  20. Message-Id: <Pine.3.03.9309161826.A24704-c100000@bode.ee.ualberta.ca>
  21. Mime-Version: 1.0
  22. Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
  23. Status: O
  24.  
  25.  
  26. [ ..description of problem deleted..]
  27. > My theory is to do a histogram of the main image. Find which colours are
  28. > not being used. Then remap the brush colours into the blank ones and end
  29. > up with a nice clean combined palette.
  30.     The problem with this is that Remaping can be very very slow...
  31. even computing the histogram will take a while on a normal screen...
  32.  
  33. > The brush is either a two or four colour variety only and the image will
  34. > normally be either 8 or 16 colours.
  35. >
  36.     One thing is you could load the Image into a 16/32 color screen
  37. so that the top 8/16 colors would be free... so now you could either have
  38. the brush designed using the top range of colors or you could re-map it.
  39.  
  40.     If you choose the re-mapping way it can be done fast by just 
  41. copying the bitplanes... ie:
  42.  
  43. +-------+ Main Screen= 32 colors --> 5 bitplanes
  44. |320x200| so if you had a 4 color brush ( 2 bitplanes ) you would want colors
  45. |       | to be re-maped like this --> { 0,1,2,3 } --> { 16,17,18,19 }
  46. +-------+
  47.  
  48. 0: %00000   16: %10000  ---> from this you can see that all you have to do
  49. 1: %00001   17: %10001       to remap the colors is fill the 5th bitplane
  50. 2: %00010   18: %10010       with $FFFFFFFF which is very quick...
  51. 3: %00011   19: %10011 
  52.  
  53.  
  54.  **  Fill Phybase(4) to Phybase(4)+(320*200)/8,$FFFFFFFF **
  55.  
  56. of course you are going to have to do the re-mapping on a temp screen
  57. then transfer it over... one problem may arise with masking... if you
  58. did require that color 0 was to be masked then now it will have to be
  59. color 16 that has to be masked... i wrote a routine to make a mask for
  60. Icons of any color which I will be sending to Andrew Church but if you
  61. need this earlier just ask...
  62.  
  63. hope this helps...
  64.  
  65.     - Mike Sikorksy <sikorsky@bode.ee.ualberta.ca>
  66.  
  67. P.S. I have never done anything with the Dual Playfield stuff but that
  68.      also may work.. it depends on how it works the colors.. I can never
  69.      remember..
  70.  
  71.  
  72. > Any ideas anyone.
  73. > Yours
  74. >     Tom Duncan
  75. >     duncan@helios.usq.edu.au
  76. >     University of Southern Queensland
  77. >     Toowoomba, Queensland.
  78.  
  79.  
  80.  
  81.  
  82.